package com.whfc.emp.param.openapi;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author sun_guodong
 * @description
 * @date 2020-06-23
 */
@Data
public class OpenApiAddEmpParam implements Serializable {
    private Integer deptId;
    private Integer projectId;
    @NotEmpty
    private String empName;
    @NotNull
    private Integer gender;
    @NotEmpty
    private String phone;
    private Integer cardType;
    private String idCardNo;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date idCardStartDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date idCardEndDate;
}
